package com.platform.wechat.common;

/**
 * @author CHENCHEN
 * @create 2021-03-29 15:12
 */
public class WechatAPI {

    //测试号域名
    public static final String URL = "http://cccxxx.nat300.top";

    //测试APPID
    public static final String APPID = "wx6456d793893eb6e6";

    //测试账号token
    public static final String TOKEN = "20210708";

    //测试APPSECRET
    public static final String APPSECRET = "2fa42d2d7323fd58633aa4873c906c5b";

    //获取AccessToken请求的url
    public static final String ACCESSTOKENURL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";

    //获取用户基本信息（UNionID机制）
    public static final String GETWXUSERINFO = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

//    //网页授权-手动同意
//    public static final String SNSAPI_USERINFO = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=URL&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";
//
//    //网页授权-静默授权
//    public static final String SNSAPI_BASE = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=URL&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";

    //网页授权
    public static final String OAUTH_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";


    //通过code获取网页授权access_token
    public static final String OAUTH2ACCESSTOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

    //获取用户信息（网页授权）
    public static final String SNSUSERINFO = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    //生成带参数的二维码
    public static final String QRCODE_PAPAM = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=TOKEN";

    //获取jsapiTicket
    public static final String JSAPITICKETURL = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";

    //挂号成功模板
    public static final String TEMPLATE_ID_REGISTER_SUCCESS = "6g2uNnoGlPF64NS5IAIZrfbEG-Zp-LlDW8veb86UjtY";

    //退号成功模板
    public static final String TEMPLATE_ID_WITHDRAWAL_SUCCESS = "CcHaJDSWGyBJZsxJ1m0vT2hF-cMcbnSKJ0cN21qiYto";

    //创建自定义菜单接口
    public static final String CREATE_MENU_URL = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";

    //发送模板消息
    public static final String SENDTEMPLATE_URL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";

}
